﻿@model IEnumerable<EasyErp.Domain.Style>
           
@using Telerik.Web.Mvc.UI

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>


@(Html.Telerik().Grid(Model)
    .Name("StyleGrid")
    .DataKeys(datakeys => datakeys.Add(k => k.StyleId))
            .Columns(columns =>
            {
                columns.Template(c => Html.ActionLink("TimeTable", "TimeTable", new { id = c.StyleId }, new { @class = "time" }) + " | " + Html.ActionLink("Edit", "Edit", new { id = c.StyleId }, new { @class = "edit" }) + " | " + Html.ActionLink("Delete", "Delete", new { id = c.StyleId }, new { @class = "delete" }))
                    .Title("Action").Width(100);

                columns.Bound(c => c.StyleNo).Width(200);
                columns.Bound(c => c.StyleDescription).Width(500);
            })
    .ColumnContextMenu()
    .Groupable()
    .Filterable()
    .Pageable(x=>x.PageSize(20))
    .Sortable()
  )